package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.Setmeal;
import com.sky.entity.SetmealDish;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    @Select("select * from setmeal_dish where setmeal_id=#{id};")
    List<SetmealDish> getSetmealDishById(@Param("id") String id);

    void addSetmealDish(@Param("setmealDishes") List<SetmealDish> setmealDishes);

    void deleteSetmealDishByIds(@Param("ids") List<String> ids);

    List<Long> getDishId(@Param("id") String id);

    List<Integer> getSetmealByDishId(@Param("id")  String id);
}
